home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / Developer University / DUProjects / DataCopy / Sources / Frame.h < prev    next >
Encoding:
Text File  |  1996-04-08  |  1.9 KB  |  65 lines  |  [TEXT/CWIE]

  1. //    Release Version:    $ ODF 1 $
  2. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  3.  
  4. #ifndef FRAME_H
  5. #define FRAME_H
  6.  
  7. //=======================================================================
  8. // ----- Framework Includes -----
  9. #ifndef FWFRAME_H
  10. #include <FWFrame.h>        // FW_CFrame
  11. #endif
  12.  
  13. #ifndef FWRECT_H
  14. #include <FWRect.h>            // FW_CRect
  15. #endif
  16.  
  17. // ----- OS Layer -----
  18. #ifndef FWEVENT_H
  19. #include "FWEvent.h"        // FW_CMouseEvent
  20. #endif
  21.  
  22. //=======================================================================
  23. class CDataCopyPart;
  24. class FW_CMenuEvent;
  25.  
  26. //=======================================================================
  27. class CDataCopyFrame : public FW_CFrame, public FW_MDraggableFrame, public  FW_MDroppableFrame {
  28. public:
  29.     FW_DECLARE_AUTO(CDataCopyFrame)
  30.     
  31.                         CDataCopyFrame(Environment* ev, 
  32.                                     ODFrame* odFrame, 
  33.                                     FW_CPresentation* presentation, 
  34.                                     CDataCopyContent* content);
  35.     virtual             ~CDataCopyFrame();
  36. protected:
  37. // overrides
  38.     virtual void                    Draw(Environment *ev, 
  39.                                             ODFacet* odFacet, 
  40.                                             ODShape* invalidShape);
  41.     virtual FW_Boolean                 DoMouseDown(Environment* ev, 
  42.                                             const FW_CMouseEvent& theMouseEvent);
  43.     virtual FW_Boolean                DoAdjustMenus(Environment* ev, 
  44.                                             FW_CMenuBar* menuBar, 
  45.                                             FW_Boolean hasMenuFocus,
  46.                                             FW_Boolean isRoot);
  47.     virtual FW_CClipboardCommand*    NewClipboardCommand(Environment* ev, 
  48.                                             ODCommandID commandID);
  49.     virtual FW_CDragCommand*        NewDragCommand(Environment *ev, 
  50.                                             FW_CFrame* theFrame, 
  51.                                             const FW_CMouseEvent& theMouseEvent);
  52.     virtual FW_CDropCommand*         NewDropCommand(Environment *ev,
  53.                                             FW_CFrame* frame,
  54.                                             ODDragItemIterator* dropInfo, 
  55.                                             ODFacet* odFacet, 
  56.                                             const FW_CPoint& dropPoint);
  57. // new members
  58. private:
  59.     CDataCopyContent*     fDataCopyContent;
  60.     FW_CRect             fFrameRect;
  61. };
  62.  
  63. //=======================================================================
  64. #endif
  65.